package view;

import java.util.HashMap;
import java.util.Map;

import javax.swing.*;

public class Operator extends JButton {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	Map<String, Operator> operator;
	
	public Operator() {
		operator = new HashMap<String, Operator>();
		generateOperators();
	}
	
	public Operator(String value) {
		new JButton();
		setText(""+value);
		
	}
	
	public void generateOperators() {
		operator.put("add", new Operator("+"));
		operator.put("sub", new Operator("-"));
		operator.put("mult", new Operator("*"));
		operator.put("div", new Operator("/"));
		operator.put("equal", new Operator("="));
		operator.put("clear", new Operator("C"));
	}
	
}
